package com.nuit.cxl.ch2.service;

import com.nuit.cxl.ch2.dao.HelloWorldMapper;
import com.nuit.cxl.ch2.vo.Student;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

@Service("HelloYouServiceImpl")
public class HelloYouServiceImpl implements HelloWorldService{

    @Resource
    public HelloWorldMapper helloWorldMapper;
    @Override
    public Student getStudent() {
        Student student = helloWorldMapper.getOneStudent();
        student.setAge(22);
        return student;
    }
}
